import { BasicFetchResult } from '../model/baseModel';
import { defHttp } from '@/utils/http/axios';

export const getChangeLog = (params: Recordable) => {
  return defHttp.get<BasicFetchResult<any>>({
    url: `/changeLog/${params.busId}`,
  });
};

export const getUserRoleOrg = () => {
  return defHttp.get<BasicFetchResult<any>>({
    url: `/sysRole/roleOrg`,
  });
};

export const getOrgRole = (orgId: string) => {
  return defHttp.get<BasicFetchResult<any>>({
    url: `/sysOrg/orgRole`,
    params: { orgId },
  });
};
